﻿<%@ Page Title="" Language="C#" MasterPageFile="~/VN/Layout_1_Col.Master" AutoEventWireup="true"
    CodeBehind="NhaTuyenDungDangKy.aspx.cs" Inherits="TuyenDungViecLam.NhaTuyenDung.NhaTuyenDungDangKy" %>

<%@ Register Src="../User_control_VN/Login_NTD.ascx" TagName="Login_NTD" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="art-Block">
        <div class="art-Block-tl">
        </div>
        <div class="art-Block-tr">
        </div>
        <div class="art-Block-bl">
        </div>
        <div class="art-Block-br">
        </div>
        <div class="art-Block-tc">
        </div>
        <div class="art-Block-bc">
        </div>
        <div class="art-Block-cl">
        </div>
        <div class="art-Block-cr">
        </div>
        <div class="art-Block-cc">
        </div>
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="art-header-tag-icon">
                    <div class="t">
                        Nhà Tuyển Dụng Đăng Kí
                    </div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div id="divCapnhat" runat="server">
                    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
                    </asp:ScriptManager>
                    <div class="label_register">
                        <asp:Label ID="Label1" runat="server" Text="Label" AssociatedControlID="txtUsername"> UserName:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtUsername" CssClass="tb_2" Width="200px" runat="server" onkeyup="usernameChecker(this.value);"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                        <span id="spanAvailability"></span>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label2" runat="server" Text="Label"> Password:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtPassword" CssClass="tb_2" Width="200px" runat="server" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword" ErrorMessage="*"></asp:RequiredFieldValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label13" runat="server" Text="Label"> xác nhận lại Password:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtXacNhanPassword" CssClass="tb_2" Width="200px" runat="server"
                            TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                                runat="server" ControlToValidate="txtXacNhanPassword" ErrorMessage="*"></asp:RequiredFieldValidator><asp:CompareValidator
                                    ID="CompareValidator1" runat="server" ControlToCompare="txtPassword" ControlToValidate="txtXacNhanPassword"
                                    ErrorMessage="xác nhận mật khẩu không đúng"></asp:CompareValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label4" runat="server" Text="Label"> Tên:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtTen" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtTen" ErrorMessage="*"></asp:RequiredFieldValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label7" runat="server" Text="Label"> Email:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtEmail" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtEmail" ErrorMessage="*"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                ErrorMessage="Emai không hợp lệ" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label8" runat="server" Text="Label"> Người liên hệ:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="TxtNguoiLienHe" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator8" runat="server" ControlToValidate="TxtNguoiLienHe"
                            ErrorMessage="*"></asp:RequiredFieldValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label9" runat="server" Text="Label"> Điện Thoại:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtdienthoai" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtdienthoai"
                            ErrorMessage="Vui lòng nhập số" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label10" runat="server" Text="Label"> Di động:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtdidong" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox></div>
                    <div class="label_register">
                        <asp:Label ID="Label3" runat="server" Text="Label"> Fax:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="Txtfax" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox></div>
                    <div class="label_register">
                        <asp:Label ID="Label5" runat="server" Text="Label"> Số tài khoản:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="TxtSoTaiKhoan" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator10" runat="server" ControlToValidate="TxtSoTaiKhoan"
                            ErrorMessage="*"></asp:RequiredFieldValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label11" runat="server" Text="Label"> Địa chỉ:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtDiachi" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtDiachi" ErrorMessage="*"></asp:RequiredFieldValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label12" runat="server" Text="Label"> Tỉnh thành:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:DropDownList ID="DrlTinhThanh" CssClass="tb_2" runat="server" Width="160px">
                        </asp:DropDownList>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label14" runat="server" Text="Label"> Giới thiệu:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="TxtGioiThieu" Width="300px" Height="150px" CssClass="tb_2" runat="server"
                            TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator11"
                                runat="server" ControlToValidate="TxtGioiThieu" ErrorMessage="*"></asp:RequiredFieldValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label15" runat="server" Text="Label"> Quy mô:</asp:Label></div>
                    <div class="textbox_register">
                        <asp:TextBox ID="TxtQuymo" Width="300px" Height="150px" CssClass="tb_2" runat="server"
                            TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator12"
                                runat="server" ControlToValidate="TxtQuymo" ErrorMessage="*"></asp:RequiredFieldValidator></div>
                    <div class="label_register">
                        <asp:Label ID="Label6" runat="server" Text="Label"> Nhập mã xác nhận:</asp:Label></div>
                    <div class="textbox_register">
                        <img id="imgValidCode" src="../VN/captcha.aspx" />
                        <img id="imbReLoad" src="/Images/RefeshCapcha.png" width="32px" height="32px" onclick="ChangeImage()"
                            alt="refesh" /><br />
                        <asp:TextBox runat="Server" ID="txtCaptcha" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtCaptcha"
                            ErrorMessage="*"></asp:RequiredFieldValidator><br />
                        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label></div>
                    <div class="textbox_register">
                        <asp:Button ID="BtDangKy" runat="server" Text="Đăng Ký" CssClass="button" OnClick="BtDangKy_Click" />
                    </div>

                    <script type="text/javascript">
                    var usernameCheckerTimer;
                    var spanAvailability = $get("spanAvailability");

                    function usernameChecker(username) {
                        clearTimeout(usernameCheckerTimer);
                        if (username.length == 0)
                            spanAvailability.innerHTML = "";
                        else {
                            spanAvailability.innerHTML = "<span style='color: #ccc;'>checking...</span>";
                            usernameCheckerTimer = setTimeout("checkUsernameUsage('" + username + "');", 750);
                        }
                    }

                    function checkUsernameUsage(username) {
                        // initiate the ajax pagemethod call
                        // upon completion, the OnSucceded callback will be executed
                        PageMethods.IsUserAvailable(username, OnSucceeded);
                    }

                    // Callback function invoked on successful completion of the page method.
                    function OnSucceeded(result, userContext, methodName) {
                        if (methodName == "IsUserAvailable") {
                            if (result == true)
                                spanAvailability.innerHTML = "<span style='color: DarkGreen;'>Available</span>";
                            else
                                spanAvailability.innerHTML = "<span style='color: Red;'>Unavailable</span>";
                        }
                    }
                    </script>

                </div>
                <div id="divThongbao" runat="server" visible="false" style="text-align: center">
                    <asp:Label ID="lbThongbao" runat="server" Text="" Font-Size="24"> </asp:Label>
                    <br />
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx"> Về trang chủ</asp:HyperLink>
                </div>
            </div>
        </div>
    </div>
    <br />
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <uc1:Login_NTD ID="Login_NTD1" runat="server" />
</asp:Content>
